package com.neusoft.elmboot.util.response;

public enum CodeEnum implements BaseResponseInfo{

    SUCCESS("200", "成功！"),

    FAILED("-1", "失败"),

    UNKNOWN_ERROR("500", "未知错误"),

    NOT_FINISHED("501", "未完成填写"),

    AMOUNT_ERROR("502", "金额异常"),

    STATE_ERROR("503", "状态异常");

    private final String code;

    private final String message;

    CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getResultCode() {
        return this.code;
    }

    @Override
    public String getResultMsg() {
        return this.message;
    }
}
